#-*- coding: utf-8 -*-
#===============================================================================
# IMPORTS
#===============================================================================
from __future__ import unicode_literals

from django.contrib.auth.models import User
from django.db import models
from apiManager.models import *


class Profil(models.Model):
    user = models.OneToOneField(User)
    is_api_admin = models.BooleanField(default=False)
    apiAccount = models.OneToOneField(ApiAccount)
    
    def __unicode__(self):
        return u"Profil de {0}".format(self.user.username)
    